package com.sky.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.hibernate.validator.HibernateValidator;

@Configuration
@Slf4j
public class ValidationConfig {

    @Bean
    public HibernateValidator validator() {
        // 使用 Hibernate Validator 实现（spring-boot-starter-validation 已内置）
        return new HibernateValidator();
    }
}
